<?php 
/**
 * Wordpress Services component by leeseawuyhs.
 *
 * Use 
 *
 * PHP versions 4 and 5
 *
 *
 * Licensed under The MIT License
 *
 * @writtenby		Leeseawuyhs
 * @license			http://www.opensource.org/licenses/mit-license.php The MIT License
 */ 
App::import("Vendor", "IXR_Client",array('file' => 'class-IXR.php'));
class WebservicesComponent extends Object {
    
    //Check Time
    function getEditDateError($year, $month,$day_int) {
        for ($day=31; $day>=28; $day--) {
            if (checkdate($month, $day, $year)) {
                //return $day;
                if($day_int > $day){
                    $day_int = $day;
                    return $day_int;
                }
                else{
                    return $day_int;
                }
            }//error date $day
        }   
    }
  
}   
?>
